package com.atguitu.campus.renwendemo.entity;


import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "用户实体")
@TableName("user") // 对应数据库表名
public class User {

    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "主键id",example = "1")
    private Long id;
    @Schema(description = "姓名",example = "张三")
    private String name;
    @Schema(description = "年龄",example = "22")
    private Integer age;
    private String email;
    private String username;
    private String password;
    private String roleKey;
    //private String status;

}